//
//  DouAudioStreamPlayer.h
//  RNRecorder
//
//  Created by GJS on 2018/12/13.
//  Copyright © 2018年 Facebook. All rights reserved.
//

#import "AudioStreamPlayer.h"
#import "DOUAudioStreamer.h"
#import "DouTrack.h"

@interface DouAudioStreamPlayer : AudioStreamPlayer

@property (nonatomic, strong) DOUAudioStreamer *streamer;

@property (nonatomic, copy) NSArray *tracks;
@property (nonatomic, strong) DouTrack *currentPlayingTrack;

@property (nonatomic, assign) double playingProgress;

@property (nonatomic, assign) NSTimeInterval currentTime; // 和上面的 playingProgress 作用差不多

@property (nonatomic, assign) double playingVolume;

@property (nonatomic, assign) NSUInteger currentTrackIndex;

@property (nonatomic, assign, readonly, getter=getIsPlaying) BOOL isPlaying;

@property (nonatomic, assign, readonly, getter=getDuration) NSTimeInterval duration;

- (void)play;
- (void)pause;
- (void)stop;
- (void)playTrackIndex:(NSUInteger)trackIndex;
- (void)playNext;

@end
